package com.pacy.pacybaseproject.adapters;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.pacy.pacybaseproject.R;
import com.pacy.pacybaseproject.beans.MsgListBean;

import io.reactivex.annotations.NonNull;

/**
 * @author PACY
 * @date 2024/1/4
 * description:
 */
public class MsgListAdapter extends BaseQuickAdapter<MsgListBean, BaseViewHolder> {
    public MsgListAdapter() {
        super(R.layout.msglist_item_view);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, MsgListBean s) {
        holder.setText(R.id.title_tv,s.getContent())
                .setText(R.id.time_tv,s.getTime());
    }
}
